package org.kazuhiko.rpg.server.task;

public abstract class ScheduledTask implements Task
{
	private long delay;
	
	private boolean running = true;
	
	public ScheduledTask( long delay )
	{
		this.delay = delay;
	}
	
	public long getDelay()
	{
		return delay;
	}
	
	public void setDelay( long delay )
	{
		this.delay = delay;
	}
	
	public boolean isRunning()
	{
		return running;
	}
	
	public void stop()
	{
		running = false;
	}
	
	public void start()
	{
		running = true;
	}
}
